package com.cyz.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/Test")
public class Test {
	
	@RequestMapping("/test")
	public ModelAndView test(HttpServletRequest request,HttpServletResponse response) {
		ModelAndView mv = new ModelAndView();
		mv.addObject("msg","Hello springMVC");
		mv.setViewName("test");
		return mv;
	}
}
